import request from '@/utils/request'

// 查询卖家列表
export function listSeller(query) {
  return request({
    url: '/console/base/seller/list',
    method: 'get',
    params: query
  })
}

// 查询卖家详细
export function getSeller(id) {
  return request({
    url: '/console/base/seller/' + id,
    method: 'get'
  })
}

// 新增卖家
export function addSeller(data) {
  return request({
    url: '/console/base/seller',
    method: 'post',
    data: data
  })
}

// 修改卖家
export function updateSeller(data) {
  return request({
    url: '/console/base/seller',
    method: 'put',
    data: data
  })
}

// 删除卖家
export function delSeller(id) {
  return request({
    url: '/console/base/seller/' + id,
    method: 'delete'
  })
}

// 导出卖家
export function exportSeller(query) {
  return request({
    url: '/console/base/seller/export',
    method: 'get',
    params: query
  })
}
